<?php

use Illuminate\Database\Seeder;

class AdminTableSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        \App\Models\Admin::create([
            'name' => 'admin',
            'email' => 'admin@admin.com',
            'password' => bcrypt('admin'),
            'remember_token' => str_random(10),
        ]);

        \App\Models\Category::create([
            'parent_id' => 0,
            'order' => '0',
            'name' => '全部分类',
            'slug' => 'all',
            'image' => 'http://img5.imgtn.bdimg.com/it/u=3207029837,3328290700&fm=27&gp=0.jpg'
        ]);
    }
}
